<template>
  <div class="">
    <h5>个人中心</h5>
  </div>
</template>

<script>
export default {
  data() {
    return {};
  },
  mounted() {},
  methods: {},
  components: {},
  beforeRouteEnter(to, from, next) {
    if (localStorage.getItem("username")) {
      next();
    } else {
      next("/login");
    }
  },
  //守卫这个页面（路由跳转之前） 如果登陆了就继续访问 没有就跳转登录页面
};
</script>

<style lang="scss"></style>
